cmake_minimum_required(VERSION 3.5)

project(test_root)

set(ROOT_DIR /home/lqz/root)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(ROOT REQUIRED)
add_executable(test ./test.cpp)
target_link_libraries(test ${ROOT_LIBRARIES})
target_include_directories(test PUBLIC ${ROOT_INCLUDE_DIRS})
